package light.head.model.el;

import java.io.Serializable;
/**
 * 
 */
public class TopicCourseRelationPK implements Serializable{
	
	private static final long serialVersionUID = -4987419667609031008L;
	private Integer cc;				// 课程编号
	private Integer tc;				// 题目编号
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj) {  
            return true;  
        }  
        if (null == obj) {  
            return false;  
        }  
        if (!(obj instanceof TopicCourseRelationPK)) {  
            return false;  
        }  
  
        final TopicCourseRelationPK tcr = (TopicCourseRelationPK) obj;
        if (!cc.equals(tcr.getCc())) {
            return false;
        }
        if (null == tc || tc.intValue() != tcr.getTc().intValue()) {
            return false;
        }
        return true;  
	}
	@Override
	public int hashCode() {
		int result;  
        result = tc.hashCode();  
        result = 29 * result + cc.hashCode();  
        return result;  
	}
	
	public Integer getCc() {
		return cc;
	}
	public void setCc(Integer cc) {
		this.cc = cc;
	}
	public Integer getTc() {
		return tc;
	}
	public void setTc(Integer tc) {
		this.tc = tc;
	}
}
